package com.walk.zworld.ui.fragment

import android.view.View
import com.walk.zworld.mvvm.vm.NavigationViewModel
import com.walk.zworld.ui.adapter.SysNavigationAdapter
import com.base.lib.base.view.BaseMvvmListFragment
import com.base.lib.httpUtils.NavigationBean

class SysNavigationFragment : BaseMvvmListFragment<NavigationBean, NavigationViewModel, SysNavigationAdapter>(){

    companion object {
        fun newInstance() = SysNavigationFragment()
    }

    override fun onBindAdapter(): Class<SysNavigationAdapter> = SysNavigationAdapter::class.java

    override fun onBindViewModel(): Class<NavigationViewModel> = NavigationViewModel::class.java

    override fun initView(view: View) {
        showInitLoadView()
        enableLoadMore(false)
    }

    override fun initData() {
        onRefreshEvent()
    }

}